<?php /* Smarty version 2.6.26, created on 2010-05-08 15:51:47
         compiled from admin/editChannel.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//添加颜色变化
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
	//数据合法性验证
	$("#editChannel").submit(function(){
		var content = $("#content").val();
		var open_state = $(":input#open_state").val();
		
		if(content == ""){
			alert("内容不能为空！");
			return false;
		}
		if(open_state == "null"){
			alert("状态你还没选择！");	
			return false;
		}
		
		return true;
	});					   
});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<form id="editChannel" action="index.php?controller=admin&action=editLiveAction" method="post">
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="2" style="background-color:#4F9AD0;"><?php echo $this->_tpl_vars['title']; ?>
</th>
  </tr>
  <tr>
    <td width="9%">编辑频道</td>
    <td width="91%"><?php echo $this->_tpl_vars['channel_name']; ?>
<input type="hidden" id="id" name="id" value="<?php echo $this->_tpl_vars['id']; ?>
" /></td>
  </tr>
  <tr>
    <td style="vertical-align:top;">内容</td>
    <td><textarea id="content" name="content" cols="60" rows="10"><?php echo $this->_tpl_vars['res_live_where']['content']; ?>
</textarea> 
    <span style="color:#933; vertical-align:top;">*内容必须</span></td>
  </tr>
  <tr>
  	<td>频道状态</td>
    <td>
        <select id="open_state" name="open_state">
        	<option value="null">请选择…</option>
        	<option value="open">开启</option>
            <option value="close">关闭</option>
        </select>
    </td>
  </tr>
  <tr>
    <td colspan="2" style="padding-left:98px;"><input type="submit" name="submit" value="提交" /> <input type="reset" name="reset" value="重置" /></td>
  </tr>
</table>
</form>
</body>
</html>